W32: Add a set of "focused" styles to checkmarks
authorРуслан Ижбулатов <lrn1986@gmail.com>
Wed, 23 Apr 2014 16:01:06 +0000 (16:01 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Thu, 24 Apr 2014 03:35:50 +0000 (03:35 +0000)
This prevents checkmarks in modelbuttons from being styled as buttons
(apparently, modelbuttons apply "focused" to their children, unlike
normal buttons).

https://bugzilla.gnome.org/show_bug.cgi?id=728808

gtk/resources/theme/gtk-win32-base.css

index ca84e79fe4f483d9d9d86c3edcc7355d3f945ac8..4f3555603c26d09edabc032d92c3795c8e8a5a14 100644 (file)
@@ -167,6 +167,7 @@ GtkRadioButton:prelight {
   background-image: -gtk-gradient (linear, left top, right bottom, from(transparent), to(transparent));
 }
 
+.check:focused,
 .check {
     background-color: transparent;
     background-image: -gtk-win32-theme-part(button, 3 1);
@@ -181,10 +182,12 @@ GtkRadioButton:prelight {
    in a listview where all checkboxes in a row gets prelighted
    whenever the row is prelighted */
 
+GtkButton.check:focused:prelight,
 GtkButton.check:prelight {
     background-image: -gtk-win32-theme-part(button, 3 2);
 }
 
+.check:focused:active,
 .check:active {
     background-image: -gtk-win32-theme-part(button, 3 5);
 }
@@ -193,10 +196,12 @@ GtkButton.check:prelight {
     background-image: -gtk-win32-theme-part(button, 3 8);
 }
 
+GtkButton.check:focused:active:prelight,
 GtkButton.check:active:prelight {
     background-image: -gtk-win32-theme-part(button, 3 6);
 }
 
+.check:focused:inconsistent,
 .check:inconsistent {
     background-image: -gtk-win32-theme-part(button, 3 9);
 }
@@ -205,6 +210,7 @@ GtkButton.check:active:prelight {
     background-image: -gtk-win32-theme-part(button, 3 12);
 }
 
+.check:focused:inconsistent:prelight,
 .check:inconsistent:prelight {
     background-image: -gtk-win32-theme-part(button, 3 10);
 }